package com.bjpowernode.springboot.entity;

/**
 * 分页实体Bean
 */
@SuppressWarnings("all")
public class PageBean {
    private int start; // 当前页的起始索引
    private int offset; // 每页显示的数据偏移量

    public PageBean() {};

    public PageBean(int start, int offset) {
        this.start = start;
        this.offset = offset;
    }

    public PageBean(int start) {
        this.start = start;
        this.offset = 4; // 默认显示4条数据
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }
}
